package com.org.cys.service.${package};

import com.org.cys.pojo.base.Page;
import com.org.cys.util.PageData;
import java.util.List;

/**
 *  ${entityComment}Service接口
 *  @author caiyushen
 */
 
public interface ${entityName}Service{
	
	/**
	 * 保存${entityName}
	 * @param PageData
	 * @throws Exception
	 * */
	 void save(PageData pd) throws Exception;

<#list dataList as var>	
	 /**
	  * 根据${var.newColumn}批量插入${entityName}
	  * @param ${var.newColumn} ${var.comment}
	  * @param dataList 数据集
	  * */
	 void saveBatchBy${var.newColumnBigger}(List<PageData> dataList,Long ${var.newColumn}) throws Exception;

</#list>
<#list dataList as var>	
	 /**
	  * 根据${var.newColumn}获取${entityName}
	  * @param ${var.newColumn} ${var.comment}
	  * */
	 List<PageData> getListBy${var.newColumnBigger}(Long ${var.newColumn}) throws Exception;

</#list>
<#list dataList as var>	
 	 /**
	  *	根据${var.newColumn}删除${entityName}
	  * @param ${var.newColumn} ${var.comment}
	  * @throws Exception 
	  * */
	 void deleteBy${var.newColumnBigger}(Long ${var.newColumn}) throws Exception;
	 
</#list>
}
 



